import axios from 'axios'

import { IAddress, IOrderProductBoxInfo } from '../interface'
import './__mock__'

/** 获取地址消息 */
export const apiGetAddressMsg = async (waybillNo: string): Promise<IAddress> => {
  return axios.post(`/tmsapi/waybill_record/getAddressInfo`, { waybillNo }).then(res => res.$data)
}

/** 获取产品箱信息接口 */
export const apiGetOrderProductBoxInfo = async (waybillNo: string): Promise<IOrderProductBoxInfo> => {
  return axios.post(`/tmsapi/waybill_record/getOrderProductBoxInfo`, { waybillNo }).then(res => res.$data)
}
